package com.easy.exception;

public class ServiceException extends RuntimeException{
    private static final long serialVersionUID = 1L;
    private int code=500;
    public ServiceException(String message)
    {
        super(message);
    }
    public ServiceException(int code,String message)
    {
        super(message);
        this.code=code;
    }
    public int getCode()
    {
        return code;
    }

}
